package me.zingon.doc.service;

import me.zingon.doc.model.Catalog;
import me.zingon.doc.model.User;
import me.zingon.doc.vo.CatalogVO;

import java.util.List;

/**
* Created by ZTCGenerator<zingon@aliyun.com> on 2018-5-31.
*/
public interface CatalogService {

    int insert(Catalog catalog);

    int delete(Catalog catalog);

    int deleteByIds(Integer[] ids);

    int update(Catalog catalog);

    Catalog getById(Integer id);

    List<Catalog> list(Catalog catalog);

    List<Catalog> listByProjectIdWithUser(Integer projectId, User user);

    int deleteByIdWithUser(Integer catalogId,Integer projectId,User user);

    List<CatalogVO> getChildren(CatalogVO cv, List<Catalog> catalogs,List<Integer> ids);
}